package main

import (
	"server/common"
	"server/services/online"
)

func main() {
	onlineService := online.NewOnlineService(nil)
	if err := onlineService.Init(); err != nil {
		common.Logger(common.SERVICE_TYPE_ONLINE).Fatalf("Failed to initialize access service: %v", err)
	}

	if err := onlineService.Start(); err != nil {
		common.Logger(common.SERVICE_TYPE_ONLINE).Fatalf("Failed to start access service: %v", err)
	}
}
